package com.gridpower.spreadsheet.client.models;

import java.util.ArrayList;
import java.util.Iterator;

public class UIModel {
	protected ArrayList renders = new ArrayList();
	public void attachRender(UIDataRender render) {
		renders.add(render);
	}
	public void detachRender(UIDataRender render) {
		renders.remove(render);
	}
	public void fireModelChange() {
		Iterator itr = renders.iterator();
		while (itr.hasNext()) {
			((UIDataRender)itr.next()).renderData();
		}
	}
}
